﻿@{ PasswordManagerMVC.Models.LogOnModel userInfo; }
@if (PasswordManagerMVC.Utilities.SessionManager.TryGetUser(Html.ViewContext.HttpContext, out userInfo))
{
    <text>Welcome <strong>@userInfo.UserName</strong>!
    | [ @Html.ActionLink("Log Off", "LogOff", "Account") ]</text>
}
else
{
    @:[ @Html.ActionLink("Log On", "LogOn", "Account") ]
}